get Cost Basis
Returns the current cost basis for the given security. (based on 'balance' which could be future-dated). MD2024(5100) calls the unified CostCalculation class for both average and lot controlled... ... unified method and applies to both average cost and lot controlled securities.
Return
The cost basis (long) for the security account asof today/future.
Parameters
The security account.
Returns the cost basis for the given security, for the given asof date. Unified method and applies to both average cost and lot controlled securities. Added February 2024 by Stuart Beesley using the new CostCalculation class since MD2024(5100).
Return
The cost basis (long) for the security account for the given asof date.
Since
MD2024(5100)
Parameters
The security account.
The asof date for the cost basis calculation